home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 5_programming / on / dcc_request < prev    next >
Encoding:
Text File  |  2001-03-21  |  809 b   |  27 lines

  1. Synopsis:
  2.    on [<modes>]dcc_request [<serial#>] [-|^]<match> { <action> }
  3.  
  4. Description:
  5.    This hook is triggered whenever the client receives a DCC request of some
  6.    sort (currently CHAT or SEND).
  7.  
  8. Parameters:
  9.    $0    nickname of remote client
  10.    $1    type of DCC connection
  11.    $2    description of dcc connection (currently same as $1)
  12.    $3    ip address of remote client
  13.    $4    port on the ip address the client is connected to
  14.    $5    file name (SEND only)
  15.    $6    file size (SEND only)
  16.  
  17. Examples:
  18.    To customize the dcc request message:
  19.       on ^dcc_request "*" {
  20.          echo *** DCC $1 requested by $0!$userhost() [$3:$4]
  21.          if ( [$1] == [send] ) echo *** File offered: $4 \($5 bytes\)
  22.       }
  23.  
  24. See Also:
  25.    dcc(1) chat, send; on(5) dcc_connect, dcc_lost
  26.  
  27.